package demo15;

// 饿汉模式
public class SingletonClass1 {
    private SingletonClass1(){

    }
    private static final SingletonClass1 instance = new SingletonClass1();

    public static SingletonClass1 getInstance(){
        return instance;
    }
}
